import re

str1 = 'Hello 1234567 World_This is a Regex Demo'
return_val = re.match(r'.*?(\d+).*', str1)

print(return_val.group(1))
